<?php 

require ('../include/web.init.inc.php');
extract ( $_POST);
header("Content-type: application/json");
$current_user_info = UserSession::getSessionInfo();
$input_data = array ('user_id'=>$current_user_info["user"]["id"],'privite_id'=>$privite_id'lawer_id'=>$lawer_id);
$real_id = Law::addPriviteLaw($input_data);

$out_trade_no = time();
$input_data = array ('user_id'=>$current_user_info["user"]["id"],'real_id'=>$real_id,'out_trade_no'=>$out_trade_no,'price' => $price,'type'=>"私人律师");
$module_id = Order::addOrder ( $input_data );

header("Content-type: application/json");
$ret = json_encode(array("code"=>1,"data"=>array("id"=>$module_id,"out_trade_no"=>$out_trade_no)));

echo $ret;